02. Matrix Addition
Matrix Addition
To add one matrix to the other we need to:
- Verify that the matrices are of the same dimensions
- Make sure we add elements in the correct corresponding index.
To put this into context, let's look at an example:
We will focus on the random matrix we saw in equation 11:
The dimensions of matrix are x.
This means that the matrix has rows and columns.
Matrix can only be added to another matrix with rows and columns. For example, matrix .
Equation 12
As long as the dimensions match, the addition is very simple:
Simply add element in to the corresponding element in .
Equation 12